home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 101 / CD-ROM 101.iso / compl / maya5ple / Install_MayaPLE5_English.exe / Maya / Data1.cab / ArtisanRegistPaintAttrCmd.me < prev    next >
Encoding:
Text File  |  2003-07-17  |  2.6 KB  |  58 lines

  1. // Copyright (C) 1997-2002 Alias|Wavefront,
  2. // a division of Silicon Graphics Limited.
  3. //
  4. // The information in this file is provided for the exclusive use of the
  5. // licensees of Alias|Wavefront.  Such users have the right to use, modify,
  6. // and incorporate this code into other products for purposes authorized
  7. // by the Alias|Wavefront license agreement, without fee.
  8. //
  9. // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
  10. // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
  11. // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  12. // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
  13. // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  14. // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  15. // PERFORMANCE OF THIS SOFTWARE.
  16. //
  17. global proc ArtisanRegistPaintAttrCmd()
  18. {
  19.     // =====================================
  20.     // reset the registration database
  21.     // =====================================
  22.     attrPaintCtx -e -una `currentCtx`;
  23.  
  24.     // ==================================
  25.     //   register paintable attribute
  26.     // ==================================
  27.  
  28.     // weightGeometryFilter's attribute
  29.     attrPaintCtx -e -rpn "weightGeometryFilter" false `currentCtx`;
  30.     attrPaintCtx -e -rpa "weightGeometryFilter" "weight" "multiDblArray" "weights" "" "" `currentCtx`;
  31.     attrPaintCtx -e -mla "weightGeometryFilter" "weight" "wl" `currentCtx`;
  32.     attrPaintCtx -e -mmi "weightGeometryFilter" "weight" "og" "og" `currentCtx`;
  33.     attrPaintCtx -e -mmi "weightGeometryFilter" "weight" "ig" "ip" `currentCtx`;
  34.  
  35.  
  36.     // particle's attribute
  37.     attrPaintCtx -e -rpn "particle" true `currentCtx`;
  38.     attrPaintCtx -e -nsp "particle" true `currentCtx`;
  39.     attrPaintCtx -e -rpa "particle" "goalPP"    "doubleArray" "goalPP"    "goalPP0" "" `currentCtx`;
  40.     attrPaintCtx -e -rpa "particle" "opacityPP" "doubleArray" "opacityPP" ""        "" `currentCtx`;
  41.     attrPaintCtx -e -rpa "particle" "rgbPP"     "vectorArray" "rgbPP"     "rgbPP0"  "" `currentCtx`;
  42.     attrPaintCtx -e -rpa "particle" "velocityPP" "vectorArray" "velocity" "velocity0" "" `currentCtx`;
  43.  
  44.     // register tweak node
  45.     attrPaintCtx -e -rpn "tweak" true `currentCtx`;
  46.     attrPaintCtx -e -rpa "tweak" "cp" "multiVector" "cp" "" "" `currentCtx`;
  47.     attrPaintCtx -e -rpa "tweak" "vt" "multiVector" "vt" "" "" `currentCtx`;
  48.  
  49.     attrPaintCtx -e -rpn "polyTweak" true `currentCtx`;
  50.     attrPaintCtx -e -rpa "polyTweak" "tweak" "vectorArray" "tweak" "" "" `currentCtx`;
  51.  
  52.  
  53.     // =====================================
  54.     // refresh the attribute tool's database
  55.     // =====================================
  56.     attrPaintCtx -e -rsn `currentCtx`;
  57. }
  58.